package com.itzb.asone.system.service.impl;


import java.util.List;

import com.itzb.asone.mybatis.Criteria;
import com.itzb.asone.system.model.SysResource;
import com.itzb.asone.system.repository.ISysResourceRepository;
import com.itzb.asone.system.service.IMessageService;
import com.itzb.asone.system.service.ISysResourceService;

public class SysResourceServiceImpl implements ISysResourceService{
	
	private ISysResourceRepository sysResourceRepository;
	private IMessageService messageService;

	public List<SysResource> queryPage(Criteria<SysResource> param){
		return sysResourceRepository.queryPage(param);
	}
	
	public List<SysResource> getResource(Criteria<SysResource> param){
		return sysResourceRepository.getResource(param);
	}

	public Integer queryPageCount(Criteria<SysResource> param){
		return sysResourceRepository.queryPageCount(param);
	}

	public SysResource queryEntityById(String id){
		return sysResourceRepository.queryEntityById(id);
	}

	public Integer insert(SysResource record){
		return sysResourceRepository.insert(record);
	}

	public Integer updateByCriteria(Criteria<SysResource> param){
		return sysResourceRepository.updateByCriteria(param);
	}

	public Integer deleteById(String id){
		return sysResourceRepository.deleteById(id);
	}

	public Integer deleteByCriteria(Criteria<SysResource> param){
		return sysResourceRepository.deleteByCriteria(param);
	}

	public ISysResourceRepository getSysResourceRepository() {
		return sysResourceRepository;
	}

	public void setSysResourceRepository(
			ISysResourceRepository sysResourceRepository) {
		this.sysResourceRepository = sysResourceRepository;
	}

	public IMessageService getMessageService() {
		return messageService;
	}

	public void setMessageService(IMessageService messageService) {
		this.messageService = messageService;
	}

}
